<script type="text/javascript" src="/modules/htmlTable/htmlTable.js"></script>

<script type="text/javascript">
    _htmlTable = new htmlTable(null, null, null, null, null);
</script>
<script type="text/javascript" src="/modules/menubar/menubar.js"></script>
<script type="text/javascript">
     if (window.sessionStorage.username != null) _menubar = new menubar("menu_admin");
</script>

<?php
global $article;
?>
<script type="text/javascript">
<?php
 echo "var article=\"{$article}\";";
 if (file_exists($article)) echo "var action=\"edit\";";
 else echo "var action=\"create\";";

?>
</script>
<script type="text/javascript" src="/modules/admin/admin.js"></script>
<script type="text/javascript">initialize_toolbar ();</script>
<script type="text/javascript" src="/modules/toolbar/toolbar.js"></script>
<script type="text/javascript">toolbar.initialize();</script>
<script type="text/javascript" src="/modules/media/media.js"></script>
<script type="text/javascript">
    if (window.sessionStorage.username != null) { 
        _media_manage = new media_manage();
        _image_manager = new image_manager();
        
        if (typeof htmlView == "undefined") $.ajax({ url: "/modules/htmlView/htmlView.js", dataType: "script", async: false});
        _content_text_htmlView = new htmlView ("content_text","0px","600px");
    }
    
    //if (window.sessionStorage.username != null) $("#publish_menus_area").css("display","block");
</script>
